
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>10.1 portainer · 《Docker从入门到放弃》</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="杨文成 <cheng2guen@163.com>">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-insert-logo/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-donate/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    

    
        <link rel="shortcut icon" href="docker.ico" type="image/x-icon">
    
    
    
    
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="docker.ico">
    
    
        
    
    
        
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    前言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    第1章 Docker Engine
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../第1章 Docker Engine/1.1 centos安装docker.html">
            
                <a href="../第1章 Docker Engine/1.1 centos安装docker.html">
            
                    
                    1.1 centos安装docker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../第1章 Docker Engine/1.2 ubuntu安装docker.html">
            
                <a href="../第1章 Docker Engine/1.2 ubuntu安装docker.html">
            
                    
                    1.2 ubuntu安装docker
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    第2章 Docker Image
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../第2章 Docker Image/2.1 镜像的基础命令.html">
            
                <a href="../第2章 Docker Image/2.1 镜像的基础命令.html">
            
                    
                    2.1 镜像的基础命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../第2章 Docker Image/2.2 镜像的导出导入.html">
            
                <a href="../第2章 Docker Image/2.2 镜像的导出导入.html">
            
                    
                    2.2 镜像的导出导入
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    第3章 Docker Container
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../第3章 Docker Container/3.1 容器的基础命令.html">
            
                <a href="../第3章 Docker Container/3.1 容器的基础命令.html">
            
                    
                    3.1 容器的基础命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../第3章 Docker Container/3.2 部署centos容器.html">
            
                <a href="../第3章 Docker Container/3.2 部署centos容器.html">
            
                    
                    3.2 部署centos容器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../第3章 Docker Container/3.3 容器的提交.html">
            
                <a href="../第3章 Docker Container/3.3 容器的提交.html">
            
                    
                    3.3 容器的提交
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../第3章 Docker Container/3.4 容器的导出导入.html">
            
                <a href="../第3章 Docker Container/3.4 容器的导出导入.html">
            
                    
                    3.4 容器的导出导入
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    第4章 Docker Volume
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../第4章 Docker Volume/4.1 volume简介.html">
            
                <a href="../第4章 Docker Volume/4.1 volume简介.html">
            
                    
                    4.1 volume简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../第4章 Docker Volume/4.2 数据卷挂载.html">
            
                <a href="../第4章 Docker Volume/4.2 数据卷挂载.html">
            
                    
                    4.2 数据卷挂载
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../第4章 Docker Volume/4.3 文件目录挂载.html">
            
                <a href="../第4章 Docker Volume/4.3 文件目录挂载.html">
            
                    
                    4.3 文件目录挂载
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" >
            
                <span>
            
                    
                    第5章 Docker Network
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../第5章 Docker Network/5.1 docker网络简介.html">
            
                <a href="../第5章 Docker Network/5.1 docker网络简介.html">
            
                    
                    5.1 docker网络简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../第5章 Docker Network/5.2 docker网络命令.html">
            
                <a href="../第5章 Docker Network/5.2 docker网络命令.html">
            
                    
                    5.2 docker网络命令
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" >
            
                <span>
            
                    
                    第6章 Dockerfile
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../第6章 Dockerfile/6.1 Dockerfile参数介绍.html">
            
                <a href="../第6章 Dockerfile/6.1 Dockerfile参数介绍.html">
            
                    
                    6.1 Dockerfile参数介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../第6章 Dockerfile/6.2 构建centos镜像.html">
            
                <a href="../第6章 Dockerfile/6.2 构建centos镜像.html">
            
                    
                    6.2 构建centos镜像
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../第6章 Dockerfile/6.3 构建ubuntu镜像.html">
            
                <a href="../第6章 Dockerfile/6.3 构建ubuntu镜像.html">
            
                    
                    6.3 构建ubuntu镜像
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../第6章 Dockerfile/6.4 构建springboot镜像.html">
            
                <a href="../第6章 Dockerfile/6.4 构建springboot镜像.html">
            
                    
                    6.4 构建springboot镜像
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" >
            
                <span>
            
                    
                    第7章 Docker Compose
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../第7章 Docker Compose/7.1 docker-compose简介.html">
            
                <a href="../第7章 Docker Compose/7.1 docker-compose简介.html">
            
                    
                    7.1 docker-compose简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../第7章 Docker Compose/7.2 docker-compose安装.html">
            
                <a href="../第7章 Docker Compose/7.2 docker-compose安装.html">
            
                    
                    7.2 docker-compose安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../第7章 Docker Compose/7.3 docker-compose参数介绍.html">
            
                <a href="../第7章 Docker Compose/7.3 docker-compose参数介绍.html">
            
                    
                    7.3 docker-compose参数介绍
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" >
            
                <span>
            
                    
                    第8章 Docker Registry
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../第8章 Docker Registry/8.1 注册DockerHub.html">
            
                <a href="../第8章 Docker Registry/8.1 注册DockerHub.html">
            
                    
                    8.1 注册DockerHub
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../第8章 Docker Registry/8.2 搭建Registry.html">
            
                <a href="../第8章 Docker Registry/8.2 搭建Registry.html">
            
                    
                    8.2 搭建Registry
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../第8章 Docker Registry/8.3 搭建Harbor.html">
            
                <a href="../第8章 Docker Registry/8.3 搭建Harbor.html">
            
                    
                    8.3 搭建Harbor
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" >
            
                <span>
            
                    
                    第9章 Docker Software
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../第9章 Docker Software/9.1 部署Nginx.html">
            
                <a href="../第9章 Docker Software/9.1 部署Nginx.html">
            
                    
                    9.1 部署Nginx
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../第9章 Docker Software/9.2 部署MySQL.html">
            
                <a href="../第9章 Docker Software/9.2 部署MySQL.html">
            
                    
                    9.2 部署MySQL
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="../第9章 Docker Software/9.3 部署Redis.html">
            
                <a href="../第9章 Docker Software/9.3 部署Redis.html">
            
                    
                    9.3 部署Redis
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" >
            
                <span>
            
                    
                    第10章 Docker Manager
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.11.1" data-path="10.1 portainer.html">
            
                <a href="10.1 portainer.html">
            
                    
                    10.1 portainer
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >10.1 portainer</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h6 id="portainer&#x4ECB;&#x7ECD;">portainer&#x4ECB;&#x7ECD;</h6>
<p><code>Portainer</code>&#x662F;<code>Docker</code>&#x7684;&#x56FE;&#x5F62;&#x5316;&#x7BA1;&#x7406;&#x5DE5;&#x5177;&#xFF0C;&#x63D0;&#x4F9B;&#x72B6;&#x6001;&#x663E;&#x793A;&#x9762;&#x677F;&#x3001;&#x5E94;&#x7528;&#x6A21;&#x677F;&#x5FEB;&#x901F;&#x90E8;&#x7F72;&#x3001;&#x5BB9;&#x5668;&#x955C;&#x50CF;&#x7F51;&#x7EDC;&#x6570;&#x636E;&#x5377;&#x7684;&#x57FA;&#x672C;&#x64CD;&#x4F5C;&#xFF08;&#x5305;&#x62EC;&#x4E0A;&#x4F20;&#x4E0B;&#x8F7D;&#x955C;&#x50CF;&#xFF0C;&#x521B;&#x5EFA;&#x5BB9;&#x5668;&#x7B49;&#x64CD;&#x4F5C;&#xFF09;&#x3001;&#x4E8B;&#x4EF6;&#x65E5;&#x5FD7;&#x663E;&#x793A;&#x3001;&#x5BB9;&#x5668;&#x63A7;&#x5236;&#x53F0;&#x64CD;&#x4F5C;&#x3001;<code>Swarm</code>&#x96C6;&#x7FA4;&#x548C;&#x670D;&#x52A1;&#x7B49;&#x96C6;&#x4E2D;&#x7BA1;&#x7406;&#x548C;&#x64CD;&#x4F5C;&#x3001;&#x767B;&#x5F55;&#x7528;&#x6237;&#x7BA1;&#x7406;&#x548C;&#x63A7;&#x5236;&#x7B49;&#x529F;&#x80FD;&#x3002;&#x529F;&#x80FD;&#x5341;&#x5206;&#x5168;&#x9762;&#xFF0C;&#x57FA;&#x672C;&#x80FD;&#x6EE1;&#x8DB3;&#x4E2D;&#x5C0F;&#x578B;&#x5355;&#x4F4D;&#x5BF9;&#x5BB9;&#x5668;&#x7BA1;&#x7406;&#x7684;&#x5168;&#x90E8;&#x9700;&#x6C42;&#x3002;</p>
<h6 id="portainer&#x5B89;&#x88C5;">portainer&#x5B89;&#x88C5;</h6>
<ul>
<li><p>&#x62C9;&#x53D6;&#x955C;&#x50CF;</p>
<pre><code class="lang-bash">docker pull portainer-ce:2.16.2
</code></pre>
</li>
<li><p>&#x7F16;&#x8F91;docker-compose.yml</p>
<pre><code class="lang-yaml"><span class="hljs-attr">version:</span> <span class="hljs-string">&apos;3&apos;</span>
<span class="hljs-attr">services:</span>

<span class="hljs-attr">  portainer:</span>
<span class="hljs-attr">    image:</span> portainer-ce:<span class="hljs-number">2.16</span><span class="hljs-number">.2</span>
<span class="hljs-attr">    container_name:</span> portainer_container
<span class="hljs-attr">    restart:</span> always
<span class="hljs-attr">    volumes:</span>
<span class="hljs-bullet">      -</span> /var/run/docker.sock:/var/run/docker.sock
<span class="hljs-bullet">      -</span> /home/compose/portainer/db:/data
<span class="hljs-attr">    ports:</span>
<span class="hljs-bullet">      -</span> <span class="hljs-number">9000</span>:<span class="hljs-number">9000</span>
<span class="hljs-bullet">      -</span> <span class="hljs-number">8000</span>:<span class="hljs-number">8000</span>
</code></pre>
</li>
</ul>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"10.1 portainer","level":"1.11.1","depth":2,"previous":{"title":"第10章 Docker Manager","level":"1.11","depth":1,"ref":"","articles":[{"title":"10.1 portainer","level":"1.11.1","depth":2,"path":"第10章 Docker Manager/10.1 portainer.md","ref":"第10章 Docker Manager/10.1 portainer.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["-lunr","-search","search-pro","expandable-chapters","back-to-top-button","code","favicon-absolute","hide-element","insert-logo","donate"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"search-pro":{},"code":{"copyButtons":true},"donate":{"alipay":"https://minio.lyqzhpt.com/typora/alipay.jpg","alipayText":"支付宝","button":"欢迎赞赏","title":"","wechat":"https://minio.lyqzhpt.com/typora/wechatpay.jpg","wechatText":"微信"},"favicon-absolute":{"appleTouchIconMore":{},"appleTouchIconPrecomposed152":"docker.ico","appleTouchIconPrecomposedMore":{},"favicon":"docker.ico"},"hide-element":{"elements":[".gitbook-link"]},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"back-to-top-button":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"insert-logo":{"style":"background: none; max-height: 32px; min-height: 32px","url":"https://minio.lyqzhpt.com/typora/docker.png"},"expandable-chapters":{}},"theme":"default","author":"杨文成 <cheng2guen@163.com>","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"《Docker从入门到放弃》","gitbook":"*","description":"docker常用功能介绍"},"file":{"path":"第10章 Docker Manager/10.1 portainer.md","mtime":"2023-05-23T00:45:07.500Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-05-23T07:10:58.029Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-hide-element/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-insert-logo/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-donate/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

